extends Node




#var url='http://i0.hdslb.com/bfs/face/5d2c92beb774a4bb30762538bb102d23670ae9c0.gif'
var url='http://i0.hdslb.com/bfs/face/52aeed957a8b1aa63dbae89be51d419f5357b88b.jpg'

func _ready():
#	$HTTPRequest.connect('request_completed',self,'_on_request_completed')
#	$HTTPRequest.request(url)
	pass



func _on_request_completed(result,response_code,headers,body):
#	var image=Image.new()
#	if image.load_jpg_from_buffer(body)!=0:
#		print('error,load Image fail')
#		return
#	var texture=ImageTexture.new()
#	texture.create_from_image(image)
#	$Sprite.texture=texture
	pass
